﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] array = new int[10];
            for(int i = 1; i < 10; i++)
            {
                array[i] = i;
                Console.WriteLine(array[i]);
            }

            ArrayList arrayList = new ArrayList();
            arrayList.Add(2018);
            arrayList.Add("软件技术");
            arrayList.Add("2班");
            arrayList.RemoveAt(0);
            foreach (var item in arrayList)
                Console.Write(item);

            Console.WriteLine();

            List<string> list = new List<string>();
            list.Add("2018");
            list.Add("2班");
            list.Insert(1, "软件技术");
            foreach (var item in list)
                Console.Write(item);

            Console.ReadKey();
        }
    }
}
